package com.smedi.ismedi.web.starter.exception;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: xulinjun
 * @Date: 2021-6-30 13:47
 */
@Data
@Builder
@AllArgsConstructor
public class ErrorItem implements Serializable {
    private int code;

    private String message;

    public String getCode() {
        return String.format("%05d", code);
    }
}
